<?
/*
 * 
 * Licensed under the terms of the GNU General Public License:
 * 		http://www.gnu.org/copyleft/gpl.html
 * 
 * For further information visit:
 * 		http://www.auditionrocks.com/
 * 
 * File Authors:
 * 		Andrew Embler (andrew@electricstate.com)
 */

require_once('audition/base.php');
include_class('band_news');
include_class('band_members');
include_class('shows');
include_class('band_information');

$bi = BandInformation::get();
$bn = new BandNewsList;
$bn_result = $bn->get_band_news(1, 0, 1);
$sl = new ShowList();
$sl->includeAll();
$sl->toSearch = 'upcoming';
$showlist = $sl->get(1);
$bs = $showlist[0];

$pt = new PageTemplate;
$pt->file = "index.php";
$pt->args['bandInformation'] = $bi;
if (is_object($bn_result[0]) && !db::isError($bn_result[0])) {
	$pt->args['news'] = $bn_result[0];
}
if (is_object($showlist[0]) && !db::isError($showlist[0])) {
	$pt->args['show'] = $showlist[0];
}
$pt->display();
?>